package com.learn.use.myreconsituteproject.mvp;

import java.lang.ref.WeakReference;

public class BasePresenter<T> {

    protected WeakReference<T> mVIewRef;

    public void attachView(T view){
        mVIewRef=new WeakReference<T>(view);
    }

    public void dettachView(){
        mVIewRef.clear();
    }

}
